﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YiSha.Framework;
using YiSha.Util;

namespace YiSha.Entity.OrganizationManage
{
    [Table("SysUserBelong")]
    [SqlSugar.SugarTable("SysUserBelong")]
    public class UserBelongEntity : BaseCreateEntity
    {
        [JsonConverter(typeof(StringJsonConverter))]
        public string UserId { get; set; }
        [JsonConverter(typeof(StringJsonConverter))]
        public string BelongId { get; set; }
        public string BelongName { get; set; }
        /// <summary>
        /// 所属类型(1职位 2角色)
        /// </summary>
        public int? BelongType { get; set; }
    }
}
